package com.xhdx.pattern.command;
/**
 * 创建具体Command实现类
 *
 */
public class CommandB implements ICommand {
    private CommandExeReceiver receiver;
    
    public CommandB(CommandExeReceiver receiver){
        this.receiver = receiver;
    }
    @Override
    public void exe() {
        System.out.println("CommandB execute...");
        receiver.exe();
    }

}
